from django.conf.urls.defaults import *
from django.contrib.auth.decorators import login_required

from issues import views

urlpatterns = patterns('',
    url(r'^$', 
        views.issue_list, 
        name='issue_list'),
    url(r'^create/$', 
        login_required(views.create_issue), 
        name='create_issue'),
    url(r'^(?P<issue_id>\d+)/$', 
        views.issue_detail, 
        name='issue_detail'),
    (r'^search/$', views.issues_search),
    (r'^attachment/(?P<key>\d+)/$', views.attachment),
    url(r'^triage/$', login_required(views.triage), name='issues_triage'),
)
